from flask import Flask, Blueprint
from application.api.system.dict_type import bp as dict_type_bp
from application.api.system.dict_data import bp as dict_data_bp
from application.api.system.user import bp as user_bp
from application.api.system.menu import bp as menu_bp
from application.api.system.device import bp as device_bp
from application.api.system.communication import bp as communication_bp
# 创建sys
system_bp = Blueprint("system", __name__, url_prefix="/system")


def register_system_bps(app: Flask):
    # 在admin_bp下注册子蓝图
    system_bp.register_blueprint(dict_type_bp)
    system_bp.register_blueprint(dict_data_bp)
    system_bp.register_blueprint(user_bp)
    system_bp.register_blueprint(menu_bp)
    system_bp.register_blueprint(device_bp)
    system_bp.register_blueprint(communication_bp)
    # system_bp.register_blueprint(file_bp)
    # system_bp.register_blueprint(monitor_bp)
    # system_bp.register_blueprint(log_bp)
    # system_bp.register_blueprint(power_bp)
    # system_bp.register_blueprint(role_bp)
    # system_bp.register_blueprint(mail_bp)
    # system_bp.register_blueprint(passport_bp)
    # system_bp.register_blueprint(right_bp)
    # system_bp.register_blueprint(dept_bp)
    # app.register_blueprint(index_bp)
    app.register_blueprint(system_bp)
